import request from '@/utils/request'

export function fetchAllPerms() {
  return request({
    url: '/package-tenant-perms/all',
    method: 'get',
  })
}

export function add(data) {
    return request({
      url: '/package/add',
      method: 'post',
      data
    })
  }

  export function page(data) {
    return request({
      url: '/package/page',
      method: 'post',
      data
    })
  }

  export function update(data) {
    return request({
      url: '/package/update',
      method: 'post',
      data
    })
  }

  export function del(data) {
    return request({
      url: '/package/delete',
      method: 'post',
      data
    })
  }

  //订单分页
  export function orderPage(data) {
    return request({
      url: '/package-order/page',
      method: 'post',
      data
    })
  }